<?php
class Admin_Form_Login extends Zend_Form {
	public function init(){
		$translator = new Zend_Translate(
          'array',
          APPLICATION_PATH.'/../library/Nippy/languages/lang.ru.php',
          'ru',
          array('scan' => Zend_Translate::LOCALE_DIRECTORY)
        );
		Zend_Validate_Abstract::setDefaultTranslator($translator);
        $this->addElement('text', 'login', array(
            'label'      => 'Имя пользователя:',
        	'filters'    => array('StringTrim','StripTags'),
            'required'   => true,
            )
        )
        ->addElement('password', 'password', array(
            'label'      => 'Пароль:',
        	'filters'    => array('StringTrim','StripTags'),
            'required'   => true,
            )
        )
        ->addElement('submit', 'submit', array(
            'label'      => 'Войти',
        	'filters'    => array('StringTrim','StripTags'),
            'required'   => true,
            )
        )
        ->setMethod('POST');
	}
}
?>